import { createI18n } from 'vue-i18n'

const messages = {
  zh: {
    message: {
      home: '首页',
      cities: '城市探索',
      food: '美食指南',
      travelGuide: '旅行攻略',
      searchPlaceholder: '搜索城市、景点、美食...',
      popularCities: '热门城市',
      featuredCategories: '特色分类',
      latestNews: '最新资讯',
      login: '登录',
      register: '注册',
      logout: '退出登录'
    }
  },
  en: {
    message: {
      home: 'Home',
      cities: 'Cities',
      food: 'Food Guide',
      travelGuide: 'Travel Guide',
      searchPlaceholder: 'Search cities, attractions, food...',
      popularCities: 'Popular Cities',
      featuredCategories: 'Featured Categories',
      latestNews: 'Latest News',
      login: 'Login',
      register: 'Register',
      logout: 'Logout'
    }
  }
}

const i18n = createI18n({
  locale: 'zh',
  fallbackLocale: 'en',
  messages
})

export default i18n